<%@ page contentType="text/html; charset=GBK" %>
<script src='/webattemp/dwr/interface/CommonAjaxAction.js' type="text/javascript"></script>
<%@include file="/wmworkflow/common/jsp/head.jsp"%>
<%@ page import="com.boco.transnms.common.bussiness.helper.URLHelper"%>
<%@ page import="com.boco.transnms.server.common.cfg.TnmsRuntime"%>
<%
  String userName = request.getParameter("userName");
  String password = request.getParameter("password");
%>
<script src='/webattemp/dwr/interface/AttempWFListAction.js'></script>
<script src='/webattemp/dwr/engine.js' type=""></script>
<script src='/webattemp/dwr/util.js' type=""></script>
<script type="text/javascript">
var userName = '<%=userName%>';
var password = '<%=password%>';
var WEB_URL = "<%=TnmsRuntime.getInstance().getWebUrl(TnmsRuntime.WEBATTEMP,URLHelper.getUrlMap(request))%>";
function pageInit(){
  dwr.engine.setAsync(false);
  var srcUrl = "index.jsp?userName="+userName +"&password="+password;
  AttempWFListAction.getProcessId(function(processId){
    if(processId!=null && processId == 'GMCC_TRAPH_ATTEMP_WORKFLOW'){
      srcUrl = WEB_URL + "/raptor/local/gdcm/provinceattemp/index.jsp?userName="+userName +"&password="+password;
    }
  });

  window.location = srcUrl;
}
</script>
<html>
<body onload="pageInit()">

</body>
</html>
